﻿namespace Borg
{
    internal class ContractTask : TypeStoreTask
    {
        internal readonly ContractHandler ContractHandler;
        internal readonly Contract Contract;

        public ContractTask(ContractHandler contractHandler, Contract contract)
        {
            ContractHandler = contractHandler;
            Contract = contract;
        }

        internal override void Execute()
        {
            ContractHandler(Contract);
        }
    }
}
